package com.mini.excel;

import org.apache.poi.hssf.util.HSSFColor;

import com.mini.excel.annotation.Excel;

public class User {
	@Excel("UID")
    private Integer uid;

	@Excel("用户名")
    private String username;

	@Excel(value = "密码", replace = "******", color = HSSFColor.RED.index)
    private String password;

	@Excel(value = "性别", width = 50, convert = "s:0=男,1=女")
    private Integer sex;

	@Excel(value = "年级")
    private Integer gradeId;
	
	public User(){}

	public User(Integer uid, String username, String password, Integer sex, Integer gradeId) {
		this.uid = uid;
		this.username = username;
		this.password = password;
		this.sex = sex;
		this.gradeId = gradeId;
	}

	public Integer getUid() {
		return uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public Integer getGradeId() {
		return gradeId;
	}

	public void setGradeId(Integer gradeId) {
		this.gradeId = gradeId;
	}

}
